package cn.e4j.modular.job.service.impl;

import cn.e4j.core.dto.impl.Dto;
import cn.e4j.modular.common.service.SysAuthorityService;
import cn.e4j.modular.crm.entity.GwaeT;
import cn.e4j.modular.job.mapper.CalendarJobMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 日历任务 服务实现类
 * </p>
 *
 * @author wenchuan.li
 * @since 2019-12-05
 */
@Service
public class CalendarJobServiceImpl {

    @Autowired
    public CalendarJobMapper calendarJobMapper;

    @Transactional(readOnly = true)
    public List<Dto> getlistPage(Page<Object> page, Dto dto) {

        List<Dto> jobList = calendarJobMapper.getlistPage(page, dto);

        return jobList;
    }

    @Transactional
    public void updateGwba(Dto dto) {

        calendarJobMapper.updateGwba(dto);

    }

}
